package cn.stylefeng.guns.modular.business.custom.enums;

/**
 * 开票对象
 */
public enum DriverTypeEnum {
    DABAN(1, "大板"),
    XIAOBAN(2, "小板");

    DriverTypeEnum(int type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public int type;

    public String desc;

    public static boolean valid(Integer type) {
        if (type == null) {
            return false;
        }
        DriverTypeEnum[] pts = DriverTypeEnum.values();
        for (DriverTypeEnum pt : pts) {
            if (type == pt.type) {
                return true;
            }
        }
        return false;
    }
}
